<?php
$APEserver = 'http://rk.datacube.hu:6969/?';
$APEPassword = 'testpasswd';

$data=$_GET[data];
//file_put_contents("test.txt",print_r($data,true));

$cmd = array(array( 
  'cmd' => 'inlinepush', 
  'params' =>  array( 
	  'password'  => $APEPassword,
	  'raw'       => 'postmsg', 
	  'channel'   => 'main',
	  'data'      => $data
   ) 
)); 

list($status) = json_decode(file_get_contents($APEserver.rawurlencode(json_encode($cmd))));

$response=array(
	'data' => $data,
	'status' => $status
);
echo json_encode($response);
